package eol;
import static org.junit.Assert.*;

import org.junit.Test;


public class RealArithmetic extends BasicTest {
   
    @Test
    public void testAdd() {
        assertEquals( "17.700000000000003"+newline, go("2.1 + 5.2 + 10.4 ;" ) ) ;
    }
    
    @Test
    public void testSub() {
        assertEquals( "18.4"+newline, go("30 - 5.5 - 6.1 ;" ) ) ;
    }
    
    @Test
    public void testMul() {
        assertEquals( "55.620000000000005"+newline, go("10.3 * 5.4  ;") ) ;
    }
    
    @Test
    public void testDiv() {
        assertEquals( "2.5"+newline, go("10 / 2 / 2 ;") ) ; }
    
}
